package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.actions.common.HealAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.IntangiblePlayerPower;
import com.megacrit.cardcrawl.powers.VulnerablePower;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.DeathPower;
import mutsumimod.util.CardStats;

public class Death extends BaseCard {
    public static final String ID = makeID(Death.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1
    );

    public Death() {
        super(ID, info);
        setAttr(0,0,2);
        setAttrUpg(0,0,1);
        exhaust=true;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        applyPowerSelf(new IntangiblePlayerPower(p,magicNumber));
        applyPowerSelf(new DeathPower(p));
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new Death();
    }
}
